package day02;

import java.util.Scanner;

/**
 * 输入一个IP地址，然后将4段数字分别输出
 * @author Bonnie
 *
 */
public class Test03 {
    public static void main(String[] args) {
        System.out.print("请输入IP:");
        Scanner scanner = new Scanner(System.in);
        String ip = scanner.next();
        String[] split = ip.split("\\.");
        for (int i = 0; i < split.length; i++) {
            System.out.print(split[i] + "  ");
        }

    }

}
